package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.model.Chart;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

public interface ChartService extends IService<Chart> {
    Chart GetLastChart(int userId);
    List<Chart> GetChartPagination(int userId,Integer pageNum);
    Long GetUserChartNum(int userId);
    //删除
    Integer DeleteChartById(int chartId);
    List<Chart> queryByChartName(int userId,String chartName);
    Chart queryChartByChartId(int chartId);
    //更新图表配置信息
    Integer updateChartData(int chartId,String chartData);
    //更新图表的其他信息
    Integer updateChartInfo(int chartId,String chartName,String genResult);
    //根据用户ID查找用户图表拿到前4个吧
    List<Chart> queryChartByUserId(int userId);

    //根据Chart的状态进行查找
    List<Chart> queryChartByStatus(int userId,String status);

}
